/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package DataTypes;

import java.util.ArrayList;

/**
 *
 * @author Sandino
 */
public class DataChat {
    
    private int id;
    private String usr1;
    private String usr2;        
    private ArrayList<DataMensaje> buffer;
    private ArrayList<DataMensaje> historial;

    public DataChat (int idnt, String e, String r){
    
        id = idnt;
        usr1 = e;
        usr2 = r;
        buffer = new ArrayList<DataMensaje>();
        historial = new ArrayList<DataMensaje>();
    
    }

    /**
     * @return the id
     */
    public int getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * @return the usr1
     */
    public String getUsr1() {
        return usr1;
    }

    /**
     * @param usr1 the usr1 to set
     */
    public void setUsr1(String usr1) {
        this.usr1 = usr1;
    }

    /**
     * @return the usr2
     */
    public String getUsr2() {
        return usr2;
    }

    /**
     * @param usr2 the usr2 to set
     */
    public void setUsr2(String usr2) {
        this.usr2 = usr2;
    }

    /**
     * @return the buffer
     */
    public ArrayList<DataMensaje> getBuffer() {
        return buffer;
    }

    /**
     * @param buffer the buffer to set
     */
    public void setBuffer(ArrayList<DataMensaje> buffer) {
        this.buffer = buffer;
    }

    /**
     * @return the historial
     */
    public ArrayList<DataMensaje> getHistorial() {
        return historial;
    }

    /**
     * @param historial the historial to set
     */
    public void setHistorial(ArrayList<DataMensaje> historial) {
        this.historial = historial;
    }
            
}
